package com.mygdx.game.Stage.Fight.Card;

import com.mygdx.game.Stage.Fight.Card.Card;
import com.mygdx.game.Stage.Fight.Energy;
import com.mygdx.game.Stage.Fight.Fighter;

import java.util.ArrayList;

public class ExampleCard extends Card {
    public ExampleCard() {
        //不同卡片不同的地址就好
        super("com/mygdx/game/Stage/Fight/card.png");
    }

    //效果重写

    @Override
    public boolean effect(Energy energy, Fighter mainActor, ArrayList<Fighter> enemies) {
        if (energy.energy-this.cost<0)return false;
        energy.energy-=cost;

        //

        mainActor.action1();//主角动作

        enemies.get(0).action1();//敌人动作

        return true;
    }
}
